//
//  BaseMapScrollView.m
//  xiaoTest
//
//  Created by xiao_shoubao on 16/9/24.
//  Copyright © 2016年 xiao_shoubao. All rights reserved.
//

#import "BaseMapScrollView.h"



@implementation BaseMapScrollView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
    
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    
    UIView *hitView = [super hitTest:point withEvent:event];
    if ([hitView isKindOfClass:NSClassFromString(@"TapDetectingView")]) {
        //这里判断point在不在mapview上面
        //查下这个方法pointInside：
        self.scrollEnabled = NO;
    }else {
        self.scrollEnabled = YES;
    }
    return hitView;
}

@end
